from utils.mysql_util import MysqlHelper

db = MysqlHelper()
sql = 'INSERT INTO user_top5 SELECT *,(times-std_times)*money_aver AS std_top5 FROM elec_0 ORDER BY std_top5 DESC LIMIT 5;'
data = db.cud(sql)
db.close()
print(data)